#include "Texture.h"
#include "assert.h"
#include "DXUT\DXUT.h"

Texture::Texture()
{
}

void Texture::Generate()
{

}

bool Texture::LoadTexture(LPCWSTR f)
{
	HRESULT hr;
	V(D3DXCreateTextureFromFile(TheD3DApp::Instance()->GetD3DDev(),f,&m_pTex));
	
	return true;
}

Texture::~Texture()
{

}

void Texture::UseThisTexture()
{
	//m_pTex->GenerateMipSubLevels();
	HRESULT hr;
	V(TheD3DApp::Instance()->GetD3DDev()->SetTexture(0,m_pTex));
}

